#ifndef TASKATTACHMENTREQUEST_H
#define TASKATTACHMENTREQUEST_H

#include "taskrequest.h"
#include "misc.h"

namespace Wishmaster {

class WISHMASTER_EXPORT TaskAttachmentRequest : public TaskRequest
{
	Q_OBJECT
public:
	TaskAttachmentRequest(const PostId& postId, int attachmentIndex, const QUrl& link, const QString& msg, Connector* connector);

	PostId postId() const;
	int attachmentIndex() const;

signals:
	void result(TaskAttachmentRequest* task, const QByteArray& arr, const QString& contentType);

protected slots:
	virtual void slot_result(const RequestPtr& rq, const QByteArray& arr);

private:
	PostId m_postId;
	int m_attachmentIndex;
};

} // namespace Wishmaster

#endif // TASKATTACHMENTREQUEST_H
